package main

import (
	"fmt"
	"os"
	"os/signal"
)

func SignleDemo01() {
	c := make(chan os.Signal, 1)
	signal.Notify(c)

	//block until a signal is received.
	s := <-c
	fmt.Println("Go signal:", s) // Got signla: terminal

}
